package org.monkey.example.websocket.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
import org.monkey.example.websocket.entity.dto.SocketMsgDTO;
import org.monkey.example.websocket.entity.form.SocketMsgAddForm;
import org.monkey.example.websocket.entity.form.SocketMsgListForm;
import org.monkey.example.websocket.entity.form.SocketMsgPageForm;
import org.monkey.example.websocket.entity.form.SocketMsgSaveForm;
import org.monkey.example.websocket.entity.form.SocketMsgUpdateForm;

public interface SocketMsgService {

  SocketMsgDTO getById(Long id,boolean nullThrow);

  SocketMsgDTO add(SocketMsgAddForm addForm);

  SocketMsgDTO update(SocketMsgUpdateForm updateForm);

  SocketMsgDTO save(SocketMsgSaveForm saveForm);

  List<SocketMsgDTO> listAll();

  IPage<SocketMsgDTO> page(SocketMsgPageForm pageForm);

  List<SocketMsgDTO> list(SocketMsgListForm listForm);

  Boolean delete(Long id);
}
